From: Richard M. Stallman Date: Wed, 28 Mar 2007 13:23:42 +0000 (+0000) Subject: (edebug-display): Don't go to edebug-outside-buffer if it is dead. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~1294 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=72e21bf311167bdf37d9f87223893d92654a23fc;p=emacs.git (edebug-display): Don't go to edebug-outside-buffer if it is dead. --- diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index 2777ea775e9..151bbd2bd9e 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el @@ -2755,7 +2755,8 @@ MSG is printed after `::::} '." ) ; if edebug-save-windows ;; Restore current buffer always, in case application needs it. - (set-buffer edebug-outside-buffer) + (if (buffer-name edebug-outside-buffer) + (set-buffer edebug-outside-buffer)) ;; Restore point, and mark. ;; Needed even if restoring windows because ;; that doesn't restore point and mark in the current buffer.